<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>权限菜单管理</title>
    <!-- 引入公用部分 -->
    <script th:replace="common/head::static"></script>

</head>
<body>
<!--Tree位置-->
<div id="permissionTree" class="demo-tree demo-tree-box" style="width: 100%; height: 100%; overflow: scroll;"></div>

<!--<button type="button" class="layui-btn layui-btn-primary layui-btn-sm get-checked">获取选中</button>
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm refresh">刷新（新增）</button>
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm open-all">全部展开</button>
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-all">全部关闭</button>
<button type="button" class="layui-btn layui-btn-primary layui-btn-sm change-icon">随机更换小图标</button>

<table class="layui-table layui-form layui-hide" id="permissionTreeTable" lay-size="sm"></table>-->


<!--编辑弹出框-->
<div class="permissionEditDiv">
    <!-- 操作表单 -->
    <form id="permissionForm" class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">权限名</label>
            <div class="layui-input-block" style="width: 235px;">
                <input type="text" id="pName" name="pName" autocomplete="off" placeholder="权限名"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" >
            <label class="layui-form-label">权限类型</label>
            <div id="pType" class="layui-input-block" style="width: 235px;">
                <input type="radio" name="pType" value="menu" title="menu" th:selected="true">
                <input type="radio" name="pType" value="button" title="button">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权限URL</label>
            <div class="layui-input-block" style="width: 235px;">
                <input type="text" id="pUrl" name="pUrl" autocomplete="off" placeholder="权限URL"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item" >
            <label class="layui-form-label">权限规则</label>
            <div class="layui-input-block" style="width: 235px;">
                <input type="text" id="pRule" name="pRule" autocomplete="off" placeholder="权限URL"
                       class="layui-input">
            </div>
        </div>
        <!--下拉树形菜单-->
        <div class="layui-form-item">
            <label class="layui-form-label">父节点</label>
            <!--<div class="layui-unselect layui-form-select" id="scene-treeselect">
                <div class="layui-select-title">
                    <input type="text" id="pParentId" name="pParentId" placeholder="请选择" readonly="" class="layui-input layui-unselect">
                    <i class="layui-edge"></i>
                </div>
                <dl class="layui-anim layui-anim-upbit" data-role="menu">
                    <div id="scene-treeselect-tree" class="demo-tree-more"></div>
                </dl>
            </div>-->
            <div class="layui-inline" style="width: 235px;">
                <input id="pParentId" name="pParentId" placeholder="父节点" class="layui-input"  >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">父节点Str</label>
            <div class="layui-input-block" style="width: 235px;">
                <input type="text" id="pParentIds" name="pParentIds" autocomplete="off" placeholder="父节点Str"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否可用</label>
            <div id="pAvailable" class="layui-input-block">
                <input type="radio" name="pAvailable" value="0" title="是" th:selected="true">
                <input type="radio" name="pAvailable" value="1" title="否">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">请求类型</label>
            <div id="pReqType" class="layui-input-block">
                <input type="radio" name="pReqType" value="GET" title="GET" th:selected="true">
                <input type="radio" name="pReqType" value="POST" title="POST">
                <input type="radio" name="pReqType" value="DELETE" title="DELETE">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">权限备注</label>
            <div class="layui-input-block">
                <textarea id="pRemark" name="pRemark" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <!-- 隐藏域 -->
        <input type="text" id="pId" name="pId" hidden="hidden" value="-1"/>
    </form>
</div>

</body>
<link rel="stylesheet" lang="less" scoped type="text/css" th:href="@{mumu/permission/permission.css}"/>
<script th:src="@{mumu/permission/permission.js}"></script>
</html>